target = libstore.a
srcs = data.cpp feature_db.cpp
libs = 
subdirs= 
INCLUDE= -Ibdb/include/ -I../log/include/ -I../dce/
LIBRARY= -ldb
CPPFLAGS+=-g -Lbdb/lib/
all : $(target)


objs=$(patsubst %.cpp, %.o, $(srcs))

all : $(target)

$(target) : $(objs) 
	for dir in $(subdirs); do make -C $(dir) ; done
	ar cr $(target) $^ $(libs)

%.o : %.cpp
	g++ $(CPPFLAGS) $(INCLUDE) $< -c -o $@

.PHONY : clean
clean:
	rm -f $(objs)
	rm -f $(target)
